<script type="text/javascript" lang="javascript">
jQuery(document).ready(function () {
  
});
</script>
<h2><?php echo $cont_title; ?></h2>
<?php $this->load->view('admin_messages',$msg_info); ?>
<div class="srch_cnt">
  <strong><?php __e($num_rows);?></strong> titles found <?php __e(isset($pagination_link)?$pagination_link:'');?>
</div>

<?php if($num_rows > 0){ ?>
<form name="frm_dwl" id="frm_dwl" action="" method="post">
  <input type="hidden" name="hd_file" id="hd_file" value="" />
  <input type="hidden" name="hd_info" id="hd_info" value="" />
</form>

<form action="<?php __e($frm_action);?>" method="post" name="<?php __e($frm_name);?>" id="<?php __e($frm_name);?>" class="frmreg" enctype="multipart/form-data">
  <table width="100%" class="tables_sample1 mytables" id="myTable">
    <thead>
      <tr class="th">
        <th align="left" width="5%" class="tablehedingbg1">&nbsp;</th>
        <th align="left" class="tablehedingbgm" colspan="4">
          <a href="#" class="conta">
            <img src="<?php __e(base_url() . 'images/icons/png/download.png' );?>" width="16" height="16" />
          </a>
          <a href="#" class="conta">
            Purchase
          </a> 
          <span class="conta">|</span>
          <a href="#" class="conta">
            <img src="<?php __e(base_url() . 'images/icons/folder_table.png' );?>" width="16" height="16" />
          </a>          
          <a href="#" class="conta">
            Open All
          </a>          
        </th>        
        <th align="left" width="1%" class="tablehedingbg2">&nbsp;</th>
      </tr>
    </thead>
    <tbody>
      <?php foreach ($list as $key => $value){ ?>
      <tr>
          <td>&nbsp;</td>
          <td width="2%" align="left" valign="top"><?php if(isset($value['os_articles_id'])){ __display_data("A.".$value['os_articles_id']);}?></td>
          <td width="5%" align="left" valign="top"><input type="checkbox" class="chk" name="chk_id" /></td>
          <td width="5%" align="left" valign="top"><img src="<?php __e(base_url() . 'images/icons/report.png' );?>" width="16" height="16" /></td>
          <td align="left" valign="top">
            <div class="pan_1"><table width="100%" cellpadding="0" cellspacing="0" class="info_data">
              <tr>
                <td width="2%" align="left" valign="top"><h4><a href="<?php __e(site_url('journals/contents_list/'.$value['os_journals_id']));?>" title="<?php __display_data($value['os_journals_title']);?>">
                <?php __display_data($value['os_journals_title']);?>
                    </a></h4></td>
              </tr>
              <tr>
                <td width="2%" align="left" valign="top">ISSN: <strong><?php __display_data($value['os_journals_issn']);?></strong>, 
                  Access: <strong><?php $chk = ($value['os_journals_access']==1)?'Paid':'Open';__display_data($chk);?></strong>, 
                  Subscription: <strong><?php __display_data($value['os_journals_subscription']);?></strong>
                </td>
              </tr>
              
              <?php 
              $pub_name = $db_model->fr_get_pub_name($value['os_journals_id']); 
              if(!empty ($pub_name)){ ?>
              <tr>
                <td width="2%" align="left" valign="top">Publisher: <strong><?php __display_data($pub_name);?></strong>                  
                </td>
              </tr>
              <?php } ?>
              
              <tr>
                <td width="2%" align="left" valign="top">Price: <strong><?php __display_data(__price($value['os_journals_price']));?> | <?php __display_data(__price($value['os_journals_price'], 'USD'));?></strong>, 
                  Issues Per Year: <strong><?php __display_data($value['os_journals_issue']);?></strong>
                </td>
              </tr>
              <?php if($frm_name != 'frmjournalsibjects'){ ?>
              <tr>
                <td width="2%" align="left" valign="top"><i><?php __display_data($value['os_articles_title']);?></i></td>
              </tr>             
              <tr>
                <td width="6%" align="left" valign="top"><i>Page: <?php __display_data($value['os_articles_pages']);?></i></td>
              </tr>
              <tr>
                <td width="6%" align="left" valign="top">Author: <i><?php __display_data($value['os_articles_author']);?></i></td>
              </tr>
              <tr>  
                <td align="left" valign="top">
                  <a href="javascript:;" class="conta">
                    <img src="<?php __e(base_url() . 'images/icons/magnifier.png' );?>" title="Show preview" width="16" height="16" onclick="javascript:slideme('<?php __display_data($value['os_articles_id']);?>','cl','fast');"/>
                  </a>
                  <a href="javascript:;" class="conta" onclick="javascript:slideme('<?php __display_data($value['os_articles_id']);?>','cl','fast');" title="Show preview">Show preview</a>                
                </td>
              </tr>
              <tr>  
                <td align="left" valign="top">
                  <div class="show_cont <?php __display_data($value['os_articles_id']);?>" style="display: none;">
                    <strong class="strg">Abstract Data</strong>
                    <p>
                      <?php __display_data($value['os_articles_abstract']);?>
                    </p>
                  </div>
                </td>
              </tr>
              <?php }/*</if($frm_name != 'frmjournalsibjects')>*/ ?>
            </table></div>
            <div class="pan_2">
              <?php if($frm_name != 'frmjournalsibjects'){ ?>              
              <?php __e(__btn_sub($value));?><br/><br/><?php __e(__btn_dwl($value));?>               
                <?php }/*</if($frm_name != 'frmjournalsibjects')>*/ ?>  
            </div>
            </td>
          <td>&nbsp;</td>  
        </tr> 
      <?php }/*</foreach ($list as $key => $val)>*/ ?>
    </tbody>
    <tfoot>
      <tr>
        <td colspan="10" align="right">Bulk Action 
          <select class="ftsel">
            <option value="">Please select</option>
            <option value="">Favourites</option>
            <option value="">Alerts</option>            
          </select>
        </td>
      </tr>
    </tfoot>
  </table>
</form>


<?php }else{ /*</else:if($num_rows > 0)>*/ ?>
<h3><?php __e(LIST_NO_DATA_MSG);?></h3>	
<?php }/*</if($num_rows > 0)>*/ ?>